#pragma once

#define MODEL_LONGITIDE                                (0)
#define MODE_LATITUDE                                  (1)
#define MODEL_TOTAL_COLUMN                        (MODE_LATITUDE + 1)

#include <QtGui/QStandardItemModel>
#include "../../TmsMap/TmsMapTool.h"

class DrawFlagModel:public QStandardItemModel
{
    Q_OBJECT
public:
    DrawFlagModel(QObject * parent = 0);
public:
    void DelRow(int row);
    void InsertRow(MST_MAP_TOOL::Lnglat &val);
    void RemoveAll();
    void GetCurrentRowInfo(int row, MST_MAP_TOOL::Lnglat &val);

private:
    void InitColumn();
    int AddRow();
};

